package com.example.orm.mapper;

import com.example.orm.pojo.Emp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2023-03-10
 * Time: 19:12
 */

@Mapper
public interface TrendsMapper {
    /**
     * 实现多条件查询
     */
    List<Emp> getEmpCondition(Emp emp);

    //测试 choose,when,otherwise
    List<Emp> getEmpChoose(Emp emp);


    /**
     * 通过数组实现批量删除
     */
    int deleteByArray(@Param("eids") Integer[] eids);

    /**
     * 通过list集合实现批量添加
     */
    int insertList(List<Emp> emps);



}
